package com.rock.code.datacollconfig.gap.service.impl;

import com.rock.code.datacollconfig.gap.dao.TbCollConfSnmpDao;
import com.rock.code.datacollconfig.gap.domain.TbCollConfSnmp;
import com.rock.code.datacollconfig.gap.service.TbCollConfSnmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("GapService")
public class TbCollConfSnmpServiceImpl implements TbCollConfSnmpService {

    @Autowired
    private TbCollConfSnmpDao tbCollConfSnmpDao;


    @Override
    public  List<TbCollConfSnmp> getAllCollSnmpConf(Map map) {
        if(map!=null&&!map.isEmpty()){
            return tbCollConfSnmpDao.getAllCollSnmpConf(map);
        }
        return null;
    }

    @Override
    public TbCollConfSnmp getAllCollSnmpConfById(String id) {
        return  tbCollConfSnmpDao.getAllCollSnmpConfById(id);
    }
}